package com.neusoft.service.impl;

import com.neusoft.dao.LoginDao;
import com.neusoft.pojo.Result;
import com.neusoft.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class LoginServiceImpl implements LoginService {

    @Resource
    private LoginDao loginDao;

    @Override
    public Map<String, ?> Login(String username, String password) {
        return loginDao.Login(username,password);
    }

    @Override
    public int register(Map<String, ?> map) {
        int insertcode =loginDao.Register(map);
        return insertcode;
    }
}
